GetFont().GetFamilyName()))
{
Point aPt;
- sal_uInt32 nStringLen, nDXCount;
+ sal_uInt32 nStringLen(0), nDXCount(0);
KernArray aDXAry;
SvMemoryStream aMemoryStream(nEscLen);
aMemoryStream.WriteBytes(pData.get(), nEscLen);
OUString aString = read_uInt16s_ToOUString(
aMemoryStream, nStringLen);
aMemoryStream.ReadUInt32(nDXCount);
+ if (nDXCount < o3tl::make_unsigned(aString.getLength()))
+ nDXCount = 0;
if ((static_cast<sal_uInt64>(nDXCount)
* sizeof(sal_Int32))
>= (nEscLen - aMemoryStream.Tell()))
aDXAry.resize(nDXCount);
for (sal_uInt32 i = 0; i < nDXCount; i++)
{
- sal_Int32 val;
+ sal_Int32 val(0);
aMemoryStream.ReadInt32(val);
aDXAry[i] = val;
}